﻿<Window x:Class="JoeyLibs.IdleStartMenu.WPFUI.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="懒人快捷方式" Height="620" Width="380" Background="Black" WindowStyle="ThreeDBorderWindow" Loaded="Window_Loaded" Icon="bitbug_favicon.ico">
    <Grid VerticalAlignment="Center" HorizontalAlignment="Left">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="200"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="30"></RowDefinition>
                <RowDefinition Height="*"></RowDefinition>
                <RowDefinition Height="140"></RowDefinition>
            </Grid.RowDefinitions>            
            <Menu x:Name="menu" Grid.Row="0" Grid.ColumnSpan="2" VerticalAlignment="Top" Visibility="Visible">
                <MenuItem Header="开始(_F)">
                    <MenuItem Header="备份配置(_I)" Click="MenuBackup_Click" />
                    <MenuItem Header="还原配置(_E)" Click="MenuRestore_Click" />
                    <MenuItem Header="恢复初始化(_F)" Click="MenuToInit_Click" />
                    <Separator />
                    <MenuItem Header="退出(_Q)" Click="MenuExit_Click" />
                </MenuItem>
                <MenuItem Header="帮助(_H)">
                    <MenuItem Header="帮助(_H)" Click="MenuHelp_Click" />
                    <Separator />
                    <MenuItem Header="关于(_A)" Click="MenuAbout_Click" />
                </MenuItem>
            </Menu>
            <ScrollViewer Margin="10,10,0,20" Grid.Column="0" Grid.Row="1" Width="190" VerticalAlignment="Center" HorizontalAlignment="Left">
                <Grid Name="gridMenu" >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="200"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                </Grid>
            </ScrollViewer>
            <Grid Margin="10,0,0,0" Grid.Column="1" Grid.Row="1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="50"></RowDefinition>
                    <RowDefinition Height="25"></RowDefinition>
                    <RowDefinition Height="30"></RowDefinition>
                    <RowDefinition Height="*"></RowDefinition>
                </Grid.RowDefinitions>
                <CheckBox Grid.Row="0" VerticalAlignment="Center" Content="是否启动多个进程" Foreground="White" Name="cbxMultiProcess" Background="White"/>
                <Button Grid.Row="1" Content="设 置" Name="btnSetting" HorizontalAlignment="Left" VerticalAlignment="Top" Width="60" Click="btnSetting_Click"/>
                <Button Grid.Row="1" Content="取 消" Visibility="Hidden" Name="btnCancleSetting" Margin="65,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="60" Click="btnCancleSetting_Click"/>
                <Label Grid.Row="2" HorizontalAlignment="Left" Content="试试右击左边的按钮" 
                       Foreground="White" FontStyle="Italic" VerticalAlignment="Top" Visibility="Hidden" 
                       Width="130" Name="lblMsgEdit" />
                <Border Name="borderEdit" Visibility="Collapsed" BorderBrush="White" VerticalAlignment="Top" HorizontalAlignment="Left" BorderThickness="3" Grid.Row="3" Width="230" Height="110">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="55"></ColumnDefinition>
                            <ColumnDefinition Width="8"></ColumnDefinition>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="25"></RowDefinition>
                            <RowDefinition Height="25"></RowDefinition>
                            <RowDefinition Height="25"></RowDefinition>
                            <RowDefinition Height="45"></RowDefinition>
                        </Grid.RowDefinitions>
                        <TextBlock Grid.Column="0" Grid.Row="0" Text="名 称: " Foreground="WhiteSmoke" VerticalAlignment="Center" HorizontalAlignment="Right" />
                        <TextBlock Grid.Column="0" Grid.Row="1" Text="进程路径: " Foreground="WhiteSmoke" VerticalAlignment="Center" HorizontalAlignment="Right" />
                        <TextBlock Grid.Column="0" Grid.Row="2" Text="默认打开: " Foreground="WhiteSmoke" VerticalAlignment="Center" HorizontalAlignment="Right" />

                        <TextBlock Grid.Column="1" Grid.Row="0" Text="*" Foreground="Red" VerticalAlignment="Center" HorizontalAlignment="Center" />
                        <TextBlock Grid.Column="1" Grid.Row="1" Text="*" Foreground="Red" VerticalAlignment="Center" HorizontalAlignment="Center" />

                        <TextBox Name="txtName" Text="{Binding Name}" Grid.Column="2" Grid.Row="0" />
                        <TextBox Name="txtProcessPath" Text="{Binding ProcessPath}" Grid.Column="2" Grid.Row="1" />
                        <TextBox Name="txtArguments" Text="{Binding Arguments}" Grid.Column="2" Grid.Row="2" />
                        <Button Name="btnSaveEdit" Click="btnSaveEdit_Click" Content="保存当前编辑" Width="120" Height="20" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,3,10,0" Grid.Row="3" Grid.ColumnSpan="3"></Button>
                    </Grid>
                </Border>
            </Grid>

            <WebBrowser Name="wbAdvert" Margin="10,0,10,10" ScrollViewer.VerticalScrollBarVisibility="Disabled" Grid.ColumnSpan="2" Grid.Row="2" Visibility="Hidden"></WebBrowser>
        </Grid>
</Window>
